<div [ngClass]="setClasses()">
  <p>
    <input type="checkbox" />
    {{ todo.title }}
    <button class="del">X</button>
  </p>
</div>
